body {
  font-family: 'Segoe UI', 'PingFang SC', 'Arial', sans-serif;
  background: #f4f6fa;
  margin: 0;
  padding: 0;
}
nav {
  background: #2196f3;
  padding: 0;
  box-shadow: 0 2px 8px rgba(33,150,243,0.08);
}
nav a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  margin: 0 36px;
  padding: 18px 0 14px 0;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
nav a:hover {
  background: #1976d2;
  color: #ffe082;
}
.container {
  max-width: 1100px;
  margin: 48px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(33,150,243,0.10);
  padding: 48px 56px 40px 56px;
  text-align: center;
}
h1, h2 {
  color: #222;
  margin-bottom: 24px;
  font-weight: 700;
}
form {
  margin-bottom: 24px;
}
input[type="text"], input[type="number"], textarea, select {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 16px;
  outline: none;
  margin-right: 8px;
  transition: border 0.2s;
}
input[type="text"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
  border: 1.5px solid #2196f3;
}
button, .container button, form button {
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.2s;
}
button:hover, .container button:hover, form button:hover {
  background: #1976d2;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  margin: 0;
}
th, td {
  padding: 14px 8px;
  text-align: center;
  border-bottom: 1px solid #e3e8ee;
  font-size: 16px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}
th {
  background: #f4f6fa;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
  text-align: center !important;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover {
  background: #e3f2fd;
  transition: background 0.2s;
}
a {
  color: #673ab7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #2196f3;
  text-decoration: underline;
}
pre {
  background: #f7f7f9;
  border-radius: 6px;
  padding: 12px;
  text-align: left;
  font-size: 15px;
  color: #333;
  overflow-x: auto;
}
.edit-form .form-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.edit-form .form-row label {
  width: 120px;
  text-align: left;
  margin-right: 16px;
  color: #333;
  font-size: 16px;
  flex-shrink: 0;
}
.edit-form .form-row input,
.edit-form .form-row select,
.edit-form .form-row textarea {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
  transition: border 0.2s;
}
.edit-form .form-row textarea {
  resize: vertical;
}
.edit-form .form-row input:focus,
.edit-form .form-row select:focus,
.edit-form .form-row textarea:focus {
  border: 1.5px solid #2196f3;
}
.form-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}
.btn-link, .btn-danger, .btn-copy {
  text-decoration: none !important;
}
.btn-link:hover, .btn-danger:hover, .btn-copy:hover {
  text-decoration: none !important;
}
.btn-link {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 10px;
  color: #2196f3;
}
.btn-link:hover {
  color: #fff;
  background: #2196f3 !important;
}
.btn-danger {
  color: #f44336;
}
.btn-danger:hover {
  color: #fff;
  background: #f44336;
}
.btn-copy {
  color: #673ab7;
}
.btn-copy:hover {
  color: #fff;
  background: #673ab7;
}
.btn-link.btn-danger, .btn-link.btn-copy {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 10px;
  color: #f44336;
}
.btn-link.btn-copy {
  color: #673ab7;
}
.btn-link.btn-danger:hover {
  color: #fff;
  background: #f44336 !important;
}
.btn-link.btn-copy:hover {
  color: #fff;
  background: #673ab7 !important;
}
.btn-link, .btn-link.btn-danger, .btn-link.btn-copy {
  border-radius: 6px;
}
.page-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 32px;
  letter-spacing: 2px;
}
.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.search-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-bar-right {
  margin-left: auto;
}
.search-bar input[type="text"] {
  width: 480px;
}
.table-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(33,150,243,0.08);
  padding: 0 0 8px 0;
  margin-bottom: 24px;
  overflow-x: auto;
}
.pagination-bar {
  margin-top: 18px;
  text-align: right;
  font-size: 15px;
  color: #666;
}
.page-link {
  color: #2196f3;
  margin: 0 4px;
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.page-link:hover {
  background: #e3f2fd;
  color: #1976d2;
}
.current-page {
  color: #fff;
  background: #2196f3;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 0 4px;
}
.cell-tooltip {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  white-space: pre-line;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  margin-top: 6px;
  display: none;
  pointer-events: none;
}
.cell-ellipsis:hover .cell-tooltip {
  display: block;
}
.cell-ellipsis {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}
@media (max-width: 600px) {
  .container {
    padding: 16px 4px;
  }
  .table-card {
    padding: 0 0 4px 0;
  }
  th, td {
    font-size: 14px;
    padding: 8px 2px;
    max-width: 80px;
  }
  .search-bar input[type="text"] {
    width: 100px;
  }
  .page-title {
    font-size: 1.2rem;
  }
  .cell-ellipsis {
    max-width: 80px;
  }
}
@media (max-width: 1200px) {
  .container {
    padding: 32px 12px 24px 12px;
  }
}
/* 左对齐：名称、方法、路径 */
th.name-col, th.method-col, th.path-col {
  text-align: left !important;
}
/* 右对齐：操作列 */
th.action-col, td.action-col {
  width: 170px;
  min-width: 140px;
  max-width: 200px;
}
td.name-col, td.method-col, td.path-col {
  text-align: left;
}
.btn-main {
  display: inline-block;
  background: #2196f3;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 4px;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.2s;
}
.btn-main:hover {
  background: #1976d2;
  color: #fff !important;
}
.edit-form .form-row label[for="responseScript"] {
  align-self: flex-start;
  margin-top: 8px;
}
#responseScriptEditor {
  width: 100% !important;
  min-width: 0;
  background: #f7f7f9;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  text-align: left !important;
}
.edit-form .form-row {
  flex-direction: row;
}
.edit-form .form-row.response-script-row {
  flex-direction: column;
  align-items: stretch;
}
.monaco-editor .margin {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
} 